// pages/memory/pickUpLight/pickUpLight.js
Component({
  options: {
    addGlobalClass: true
  },
  behaviors: [],

  properties: {
    
  },
  data: {
    list:[
      {id:'1',uploadTime:'2021年02月01日',uploadName:'赵三',type:'image',url:'https://ossweb-img.qq.com/images/lol/web201310/skin/big99008.jpg' },
      {id:'2',uploadTime:'2021年02月01日',uploadName:'赵三',type:'video',url:'https://v-cdn.zjol.com.cn/280443.mp4' },
      {id:'3',uploadTime:'2021年02月01日',uploadName:'赵三',type:'text',url:'岁月静好' },
    ]
  }, // 私有数据，可用于模版渲染

  // 生命周期函数，可以为函数，或一个在methods段中定义的方法名
  attached: function () { },
  moved: function () { },
  detached: function () { },

  methods: {
    look(e){
      console.log(e);
      let obj = JSON.stringify({id:e.currentTarget.dataset.id})
      wx.navigateTo({
        url : '/pages/memory/pickUpLight/details/details?obj=' + encodeURIComponent(obj)
      })
    },
  }

})
